home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr49
/
352_01.zip
/
VLISTEQ.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-10
|
557b
|
28 lines
//VLISTEQ.CPP
// routine for Vlist::operator=() and copy constructor.
#include "dblib.h"
Vlist& Vlist::operator=( Vlist& a )
{
this->clear(); // remove current contents of Vlist.
this->push ( a ); //
return *this;
}
Vlist::Vlist (Vlist& a) // copy constructor
{
this-> clear();
this-> push(a);
}
void Vlist::push ( Vlist& a )
{
int an = a.n;
void **al=a.list;
for ( int i=0; i<an; ++i )
{
this-> push ( al[i] );
}
}
//--------------------- end VLISTEQ.CPP -------------------------------------